package com.app.util;

import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Map;

public class ReflectUtil {
	
	public static Map<String,Object> classToMap(Class c){
		Map<String,Object> map = new HashMap<String,Object>();
		Field[] declaredFields = c.getDeclaredFields();
		for (Field f:declaredFields) {
			map.put(f.getName(), f);
		}
		return map;
	}
}
